{% extends "base.html" %}

{% block content %}
{% if news_list %}
{% for elem in news_list %}
<section class="hero is-primary">
  <div class="hero-body">
    <p class="title">
      {{elem.title}}
    </p>
    <p class="subtitle">{{elem.content}}</p>
  </div>
</section>
{% endfor %}
{% else %}
<p>暂无新闻</p>
{% endif %}
{% endblock content %}